﻿<%@ Page  Language="C#" AutoEventWireup="true" CodeBehind="empresas.aspx.cs" Inherits="GesWork.maestros.empresas" %>


    <asp:content ID="df" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
      
      
      
             <table class="tblGeneral" >
            <tr class="tblHeader">
                  
                    <td>
                    Nombre
                    </td>
                    
                    <td>
                    Telefono
                    </td>
                    <td>
                    Fax
                    </td>
                    <td>
                    Email
                    </td>

                </tr>
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                <ItemTemplate>
                <tr class="tblBody">
                    <td>
                    <a href="empresa.aspx?id=<%# Eval("ID") %>" > <%# Eval("Name")%></a>
                    </td>
                   
                   
                    <td>
                    <%# Eval("CI_Telephone1")%>
                    </td>
                    <td>
                    <%# Eval("CI_Fax")%>
                    </td>
                    <td>
                    <%# Eval("CI_Email1")%>
                    </td>

                </tr>
                </ItemTemplate>
                </asp:Repeater>
            </table>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:gesworkConnectionString %>" 
        
                 SelectCommand="SELECT [ID], [Name], [CI_Email1], [CI_Fax], [CI_Telephone1] FROM [Enterprise]">
    </asp:SqlDataSource>
    
    
    <br />
             <br />
           
            <asp:ImageButton ID="NewButton" runat="server"   
                 ImageUrl="~/images/btnNuevo.png"  CssClass="botones" CausesValidation="False" 
                    CommandName="New" PostBackUrl="~/maestros/empresa.aspx"   />
<p>
</p>
    </asp:content>

